package designPattern.struction.proxypattern;

/**
 * @author 张琪
 * @date 2023/3/3 14:16
 */
public class You implements GiveGift{
    BeautifulGirl bg;

    public You(BeautifulGirl bg) {
        this.bg = bg;
    }

    @Override
    public void giveFlower() {
        System.out.println(bg.getName() + "送你一束花");
    }

    @Override
    public void giveChocolate() {
        System.out.println(bg.getName() + "送你一盒巧克力");
    }

    @Override
    public void giveBook() {
        System.out.println(bg.getName() + "送你一本书");
    }
}
